package com.hyt.it.ogt.ks.feign.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyt.common.apiInfor.DataType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * Exam 类型:
 * </p>
 *
 * @author linjd
 * @since 2020/6/10 16:21
 */
@Data
@Accessors(chain = true)
@ApiModel(value="考试基本信息")
public class Exam implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "考试任务Id", dataType= DataType.STRING)
    private String taskId;

    @ApiModelProperty(value = "考试名称", dataType= DataType.STRING)
    private String examName;
    
    @ApiModelProperty(value = "任务名称", dataType= DataType.STRING)
    private String taskName;

    @ApiModelProperty(value = "开始时间，时间格式yyyy-MM-dd HH:mm:ss", dataType= DataType.STRING)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8"  )
    private LocalDateTime beginDate;

    @ApiModelProperty(value = "结束时间，时间格式yyyy-MM-dd HH:mm:ss", dataType= DataType.STRING)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "欢迎语", dataType= DataType.STRING)
    private String welcomeComment;

    @ApiModelProperty(value = "考生须知", dataType= DataType.STRING)
    private String agreement;

    @ApiModelProperty(value = "是否已发布考试，1 表示是，0 表示否", dataType= DataType.BOOLEAN)
    private Boolean publishExam;

    @ApiModelProperty(value = "是否发布成绩，1 表示是，0 表示否", dataType= DataType.BOOLEAN)
    private Boolean publishResult;

    @ApiModelProperty(value = "所属报名ID", dataType= DataType.STRING)
    private String enrollId;

    @ApiModelProperty(value = "所属报名名称", dataType= DataType.STRING)
    private String enrollName;

    @ApiModelProperty(value = "机构ID", hidden = true)
    private String officeId;

    @ApiModelProperty(value = "机构名称")
    private String officeName;

    @ApiModelProperty(value = "随机生成的6位数字", hidden = true)
    private Integer randomId;
    
    @ApiModelProperty(value = "背景图地址")
	private String background;
    
    @ApiModelProperty(value = "logo地址")
    private String logo;
    
    @ApiModelProperty(value = "是否大湾区考试，1 表示是，0 表示否", dataType= DataType.BOOLEAN)
    private Boolean shenGangAoExam;
    
}
